package com.dxf.service;


import com.dxf.entity.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Congeration {

    @Bean("student")
    public Student getStudent(){


        //Student student = new Student();


        return new Student(1,"韩梅梅",12,"初中");

    }


    @Bean("exam")
    public Exam getExam(){

        return new Exam();
    }

}
